package com.oocl.Homework3;

public class FormatPrint 
{
	public void print(Customer c)
	{
		System.out.println(c.getId()+" "+c.getName()+" "+c.getEmail()+" "+c.getSex()+" "+c.getDate());
	}
	public void printXml(Customer c)
	{
		System.out.println("	<customer id="+c.getId()+">");
		System.out.println("		<name>"+c.getName()+"</name>");
		System.out.println("		<date>"+c.getDate()+"</date>");
		System.out.println("		<email>"+c.getEmail()+"</email>");
		System.out.println("	</customer>");
	}
}
